package cn.orange.sentinel;

import cn.orange.User;
import com.sun.deploy.security.BlockedException;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 限流触发
 */
public class BlockDemote {
    public static User demoteMethod(@PathVariable("id") Long id , BlockedException blockedException){
        return new User(-1L,"降级触发","请稍后重试！");

    }
}
